/*
 * @Author: xiaodong 565071984@qq.com
 * @Date: 2022-05-02 19:25:33
 * @LastEditors: xiaodong 565071984@qq.com
 * @LastEditTime: 2022-05-12 22:12:51
 * @FilePath: /小票/src/main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import i18n from '@/lang'
import '@/layouts/export'
import Vue from 'vue'
import App from './App'
import './plugins'
import router from './router'
import store from './store'
/**
 * @author https://gitee.com/chu1204505056/vue-admin-better （不想保留author可删除）
 * @description 生产环境默认都使用mock，如果正式用于生产环境时，记得去掉
 */

if (process.env.NODE_ENV === 'production') {
  const { mockXHR } = require('@/utils/static')
  mockXHR()
}

Vue.config.productionTip = false
Vue.prototype._i18n = i18n

const app = new Vue({
  el: '#vue-admin-beautiful',
  router,
  store,
  render: (h) => h(App),
})
export default app
